package cn.zc.curriculum.service.controller.curriculum;


import cn.tools.core.VO.PageVO;
import cn.tools.core.base.BaseController;
import cn.tools.core.base.R;

import cn.zc.curriculum.entity.Dto.CurriculumClassifyDto;
import cn.zc.curriculum.entity.VO.CurriculumClassifyVO;
import cn.zc.curriculum.service.service.CurriculumClassifyService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 课程大类 前端控制器
 * </p>
 *
 * @author keno
 * @since 2022-02-14
 */
@Api(tags = "课程类")
@RestController
@RequestMapping("/curriculum")
public class CurriculumClassifyController extends BaseController {

    @Resource
    private CurriculumClassifyService curriculumClassifyService;



    /**
     * 学员进入首页查询课程
     * @param pageVO
     * @param curriculumClassifyVO
     * @return
     */
    @ApiOperation(value = "查询课程")
    @GetMapping("/find/CurriculumClassify")
    private R<Object> findCurriculumClassify(PageVO pageVO, CurriculumClassifyVO curriculumClassifyVO){
        CurriculumClassifyDto[] curriculumClassify = curriculumClassifyService.findCurriculumClassify(pageVO,curriculumClassifyVO);
        return R.success(curriculumClassify);
    }






}

